object MTable {
    def main() : Unit = {
{
        println(new MulTable().displayTable(9));
      }
   }
}

class MulTable {
 def displayTable(param : Int) : String = { 
  var myInt : Int;
  var result : Int;
  myInt = 0;
  result = param;
  println("");
  println("table for the multiplication of "+param);
  println("---------------------------------");
  while (myInt < 20) {
   myInt = myInt + 1;
   println(myInt+" X "+param+" = "+result);
   result = result + param;
  }
  println("----------------------------------");
 return "End of multiplications process...";
 }
}
